function $id(id) {
	return document.getElementById(id);
}

/*根据class查找元素*/
function $class(className, parentDom) {
	if (parentDom) {
		return parentDom.getElementsByClassName(className);
	} else {
		return document.getElementsByClassName(className);
	}
}
